// web/src/hooks/use-current-user.ts
import {useSession} from 'next-auth/react'

// 客户端用
export const useCurrentUser = () => {
    const session = useSession()

    return session.data?.user
}